/**
 * @Author MrLi
 * @Version 1.0
 * @Date 2023-08-11 11:15:55
 */
package com.cl.erp_2301.Service.impl;

import com.cl.erp_2301.Service.InventoryService;
import com.cl.erp_2301.dto.InventoryDTO;
import com.cl.erp_2301.entity.Goods;
import com.cl.erp_2301.entity.Store;
import com.cl.erp_2301.mapper.InventoryMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InventoryServiceImpl implements InventoryService {


    @Resource
    private InventoryMapper inventoryMapper;

    @Override
    public int add1(InventoryDTO inventoryDTO) {
        return inventoryMapper.add1(inventoryDTO);
    }

    @Override
    public List<Store> storeList() {
        return inventoryMapper.storeList();
    }

    @Override
    public List<Goods> goodsList() {
        return inventoryMapper.goodsList();
    }

    @Override
    public List<InventoryDTO> findAllBy(InventoryDTO inventoryDTO) {
        return inventoryMapper.findAllBy(inventoryDTO);
    }

    @Override
    public void deleteById(Integer id) {
        inventoryMapper.deleteById(id);
    }

    @Override
    public void updateById(InventoryDTO inventoryDTO) {
        inventoryMapper.updateById(inventoryDTO);
    }
}
